﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class ConfigService : IConfigService
{
    public string GetSetting(string settingKey)
    {
        //refresh the app settings portion, to ensure we pull the latest info and then look for the setting key
        ConfigurationManager.RefreshSection("appSettings");
        return ConfigurationManager.AppSettings[settingKey];
    }
}
